/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.SeasonsDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface SeasonInterface {

    ArrayList<SeasonsDTO> findByAll();

    SeasonsDTO readById(int id);

    ArrayList<SeasonsDTO> findByName(String name);

    ArrayList<SeasonsDTO> findByStarDate(String Stdate);

    ArrayList<SeasonsDTO> findByEndDate(String Endate);

    ArrayList<SeasonsDTO> findByDTO(SeasonsDTO dto);

    boolean create(SeasonsDTO season);

    boolean update(SeasonsDTO season);

    boolean delete(SeasonsDTO season);

    boolean delete(int id);
}
